package com.ysx.day20210925.ch03;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Ch04 {

    public static void main(String[] args) {

        // ----
        String check = "^((13[0-9])|(15[^4,\\\\D])|(18[0,5-9]))\\\\d{8}$";
        Pattern regex = Pattern.compile(check);
        Matcher matcher = regex.matcher("13267128038");
        boolean flag = matcher.matches();
        System.out.println(flag);
    }
}
